package com.test.pattern.state.after;

/**
 * @ClassName: LiftState
 * @description: 抽象状态（State）角色
 * @author: Mr du
 * @create: 2024-03-12 21:46
 */
public abstract class LiftState {

    protected Context context;

    public void setContext(Context context) {
        this.context = context;
    }

    //电梯开启操作
    public abstract void open();

    //电梯关闭操作
    public abstract void close();

    //电梯停止操作
    public abstract void stop();

    //电梯运行操作
    public abstract void run();
}
